import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import {epRoot}  from "@element-plus/build-utils";
import { resolve } from "path";


// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    // 开发环境需要改路径，而不是构建后的路径
    alias: {
      "element-plus": resolve(epRoot, "index.ts"),
    },
  },
});
